Command alias or Alias command #1091
authorStephen Becker IV <github@deathbyescalator.com>
Thu, 12 May 2016 16:30:57 +0000 (09:30 -0700)
committerStephen Becker IV <github@deathbyescalator.com>
Thu, 7 Jul 2016 04:31:46 +0000 (21:31 -0700)
commit66739f1c5b146ffb71a7f07f8fa25e5ee91a1a65
treeced93733f2e942abb06556bc8073e17fea9fb4dd
parent5716f32d78b1baf629e055573a682a6730936b4b
Command alias or Alias command #1091

Dearest Reviewer,

This pull request closes #1091 which is a request to support aliases.
This is not as powerful as something like git's alias, however, I think
it sticks true to the original request.

I high jack the processing of the args. After a few flags are checked
and the args are parsed I check the config file for alias.COMMAND. If it
is there I split it like args does and replace args[1] (the original
command) with the alias command and its 'flags'.

I have also included default short hand commands b, t and r.

Thanks!
Becker
src/bin/cargo.rs
src/doc/config.md
tests/cargo_alias_config.rs [new file with mode: 0644]